<%layout("../layout.html"){%>
<div class="margin-top">
	<div class="line-middle ">
		<div class="xm3 margin-bottom">
			<form role="form" action="${BASE_PATH}/admin/cate/addAction"
				method="post">
				<div class="form-group">
					<div class="label">
						<label for="cateName">分类名称</label>
					</div>
					<div class="field">
						<input type="text" class="input" id="cateName" name="cateName"
							size="30" autocomplete="off" placeholder="输入分类名称" />
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label for="cateAlias">分类别名</label>
					</div>
					<div class="field">
						<input type="text" class="input" id="cateAlias" name="cateAlias"
							size="30" autocomplete="off" placeholder="输入分类别名" />
					</div>
				</div>

				<div class="form-button">
					<button class="button" type="submit">添加</button>
				</div>
			</form>
		</div>
		<div class="xm9 margin-bottom">
			<table class="table table-bordered table-hover">
				<thead>
					<tr>
						<th>名称</th>
						<th>别名</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<% for(cate in cates) {%>
					<tr>
						<td>${cate.name}</td>
						<td>${cate.alias}</td>
						<td><a class="button bg-darkRed fg-white"
							href="${BASE_PATH}/admin/cate/del/${cate.id}">删除</a></td>
					</tr>
					<%}%>
				</tbody>
			</table>
		</div>
	</div>
</div>
<%}%>
